package com.oj.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Packet implements Serializable {
    private Integer id;
    private String protocol;
    private String verbose;
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String detail;
    private String hex;
    private String username;
    private Date date;
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String ip;
    private String defunct;
    private String friendlyDate;
    private User user;
}
